package com.example.joke.custom.shape58

import android.animation.ObjectAnimator
import android.animation.ValueAnimator
import android.view.animation.DecelerateInterpolator
import com.example.joke.base.navigationbar.AbsNavigationBar
import com.example.joke.databinding.ActivityQqStepBinding
import com.example.joke.databinding.ActivityShape58Binding
import com.example.joke.frame.BaseSkinActivity
import com.example.joke.frame.DefaultNavigationBar
import java.util.Timer
import java.util.TimerTask

class Shape58Activity : BaseSkinActivity<ActivityShape58Binding>() {

    override fun setListener() {
    }

    override fun initData() {
        val timer = Timer()
        timer.schedule(object : TimerTask() {
            override fun run() {
                binding.shape.exchangeShape()
            }

        }, 0,1000)

        binding.btn.setOnClickListener {
            timer.cancel()
        }
    }

    override fun initTitle() {
        DefaultNavigationBar.Builder(this)
            .setTitle("仿58加载效果")
            .builder<AbsNavigationBar.Builder.AbsNavigationParams>()
    }

    override fun getBinding1(): ActivityShape58Binding {
        return ActivityShape58Binding.inflate(layoutInflater)
    }
}